cmake_minimum_required(VERSION 2.8.4)
project(NetworkLib)

set (MY_OUT_DIR "${PROJECT_SOURCE_DIR}/../../../out")
set (LIBRARY_OUTPUT_PATH "${MY_OUT_DIR}")

include_directories("${PROJECT_SOURCE_DIR}/include/")
include_directories("${PROJECT_SOURCE_DIR}/../../External/logog/include/")
include_directories("${PROJECT_SOURCE_DIR}/../../Internal/UtilsLib/include/")
include_directories("${PROJECT_SOURCE_DIR}/../../ClientLib/api/")

AUX_SOURCE_DIRECTORY("${PROJECT_SOURCE_DIR}/src/" NetworkLib_SOURCES) 

set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON) 
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.45.0 COMPONENTS system thread-mt filesystem serialization)

if(Boost_FOUND)
    include_directories(${Boost_INCLUDE_DIRS})
    add_library(${PROJECT_NAME} STATIC ${NetworkLib_SOURCES})
    target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES})   
endif()



